﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Templates/MasterPages/Mobile.Master" CodeBehind="News.aspx.cs" Inherits="EPiServer.Municipality.Templates.MobilePages.NewsList" %>
<asp:Content runat="server" ContentPlaceHolderID="Content">

    <EPiServer:PageList runat="server" ID="MyPageList" PageLinkProperty="NewsContainer" MaxCount="5" SortBy="PageStartPublish" SortDirection="Descending">
        <headertemplate>
            <ul data-role="listview" data-theme="i">
        </headertemplate>
        <ItemTemplate>
        <li data-icon="custom">
                        <a href="<%#Container.CurrentPage.LinkURL %>">
                    <h3 class="smaller"><%#Container.CurrentPage.PageName %></h3>
                    <p class="listtext"><EPiServer:PropertyDate ID="PropertyDate1" runat="server" DateFormat="D" PropertyName="PageStartPublish" EnableViewState="false" /></p>
                    <%#GetTeaserImage(Container.CurrentPage) %>
                </a>
        </li>
        </ItemTemplate>
        <footertemplate>
            </ul>
        </footertemplate>
    </EPiServer:PageList>
</asp:Content>